.avatar {
  background-image: url(../img/avatar.jpeg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  border: 2px solid black;
  margin: 100px auto;
}

.avatar::before,
.avatar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: all 0.5s;
}


.avatar::before {
  background: rgba(0, 0, 0, .5);
}

.avatar::after {
  background: inherit;
  clip-path: circle(50% at 50% 50%);
}

.avatar:hover::after{
  clip-path: circle(50% at 50% 50%);
}